package online.longzipeng.cinemasys.vo.role;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

/**
 * @author lzp
 * @date 2021/4/10 10:11
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "角色资源保存对象",description = "请求参数类")
public class RoleSaveVO {

    /**
     * 角色名
     */
    @ApiModelProperty(value = "角色名",example = "1",required = true)
    @NotBlank(message = "角色名不能为空！！")
    private String name;

    /**
     * 描述
     */
    @ApiModelProperty(value = "描述",example = "系统的管理员",required = false)
    private String description;

    /**
     * 是否生效
     */
    @ApiModelProperty(value = "是否生效",example = "true/false",required = true)
    private Boolean available;

}
